home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutUDec.c < prev    next >
MacBinary  |  1994-06-12  |  896 b   |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PutUDec.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jun 12 15:05:36 1994, modified Sun Jun 12 15:05:36 1994, creator Think C, type ASCII, 304 bytes "PutUDec.c" , at 0x1b0 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 50 75 74 55 44 65 | 63 2e 63 00 00 00 00 00 |..PutUDe|c.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 01 30 00 | 00 01 7e aa 21 0d 00 aa |......0.|..~.!...|
|00000060| 21 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |!.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b0 69 00 00 |........|.....i..|
|00000080| 76 6f 69 64 20 50 75 74 | 43 68 61 72 28 63 68 61 |void Put|Char(cha|
|00000090| 72 20 63 29 3b 0d 76 6f | 69 64 20 50 75 74 54 65 |r c);.vo|id PutTe|
|000000a0| 78 74 28 63 6f 6e 73 74 | 20 63 68 61 72 2a 20 73 |xt(const| char* s|
|000000b0| 2c 20 69 6e 74 20 6c 65 | 6e 20 29 3b 0d 76 6f 69 |, int le|n );.voi|
|000000c0| 64 20 5f 5f 44 65 63 54 | 6f 54 65 78 74 20 28 75 |d __DecT|oText (u|
|000000d0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 64 65 63 |nsigned |long dec|
|000000e0| 2c 20 63 68 61 72 2a 20 | 73 74 72 20 29 3b 0d 0d |, char* |str );..|
|000000f0| 76 6f 69 64 20 50 75 74 | 55 44 65 63 28 75 6e 73 |void Put|UDec(uns|
|00000100| 69 67 6e 65 64 20 6c 6f | 6e 67 20 69 20 29 0d 7b |igned lo|ng i ).{|
|00000110| 0d 09 09 69 6e 74 09 09 | 20 6e 20 3d 20 30 3b 0d |...int..| n = 0;.|
|00000120| 09 09 63 68 61 72 2a 09 | 20 73 74 72 20 3d 20 22 |..char*.| str = "|
|00000130| 30 30 30 30 30 30 30 30 | 30 30 22 3b 0d 09 0d 09 |00000000|00";....|
|00000140| 5f 5f 44 65 63 54 6f 54 | 65 78 74 20 28 69 2c 20 |__DecToT|ext (i, |
|00000150| 73 74 72 20 29 3b 0d 09 | 0d 09 77 68 69 6c 65 20 |str );..|..while |
|00000160| 28 20 73 74 72 5b 6e 5d | 20 3d 3d 20 27 30 27 20 |( str[n]| == '0' |
|00000170| 26 26 20 6e 3c 39 20 29 | 0d 09 09 6e 2b 2b 3b 0d |&& n<9 )|...n++;.|
|00000180| 09 0d 09 50 75 74 43 68 | 61 72 28 20 27 23 27 20 |...PutCh|ar( '#' |
|00000190| 29 3b 0d 09 50 75 74 54 | 65 78 74 28 20 26 73 74 |);..PutT|ext( &st|
|000001a0| 72 5b 6e 5d 2c 20 31 30 | 2d 6e 20 29 3b 0d 7d 0d |r[n], 10|-n );.}.|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000210| 70 72 65 73 73 69 6f 6e | 73 20 74 6f 20 6d 61 74 |pression|s to mat|
|00000220| 63 68 20 d4 5c 3c 64 69 | 67 69 74 3e d5 00 00 00 |ch .\<di|git>....|
|00000230| 09 50 75 74 55 44 65 63 | 2e 63 02 00 02 00 54 45 |.PutUDec|.c....TE|
|00000240| 58 54 4b 41 48 4c 00 00 | 00 00 00 00 00 00 00 00 |XTKAHL..|........|
|00000250| 02 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 aa 20 c6 81 00 00 | 01 30 00 00 01 7e 75 6d |... ....|.0...~um|
|00000280| 70 20 74 61 62 6c 65 20 | 74 6f 6f 20 62 69 67 10 |p table |too big.|
|00000290| 72 65 73 6f 75 72 63 65 | 20 74 6f 6f 20 62 69 67 |resource| too big|
|000002a0| 18 69 6c 6c 65 67 61 6c | 20 6e 65 61 72 20 72 65 |.illegal| near re|
|000002b0| 66 65 72 65 6e 63 65 3a | 20 1f 69 6c 6c 65 67 61 |ference:| .illega|
|000002c0| 6c 20 70 63 2d 72 65 6c | 61 74 69 76 65 20 72 65 |l pc-rel|ative re|
|000002d0| 66 65 72 65 6e 63 65 3a | 20 00 00 00 d4 00 10 0d |ference:| .......|
|000002e0| 53 61 76 65 20 66 69 6c | 65 20 61 73 3a 11 4e 61 |Save fil|e as:.Na|
|000002f0| 6d 65 20 6e 65 77 20 70 | 72 6f 6a 65 63 74 3a 0f |me new p|roject:.|
|00000300| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00000330| 02 7d 00 52 00 3c 01 dc | 02 6c aa 20 c6 b1 00 00 |.}.R.<..|.l. ....|
|00000340| 00 16 00 00 00 16 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00000350| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 82 48 50 |...L...L|...2..HP|
|00000360| 12 5e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.^.....2|..MPSR..|
|00000370| 00 0a 03 ed ff ff 00 00 | 00 00 00 82 46 c4 00 00 |........|....F...|
+--------+-------------------------+-------------------------+--------+--------+